Discussion:
Zenoss 4.2.0 and The Nagios Parser
Mouhammed Soueidane
2012-12-12 11:06:15 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70469#70469

--------------------------------------------------------------
Hey everyone,
After I successfully upgraded Zenoss core from version 3.1.0 to version 4.2.0, I realized that my old custom monitoring template that was perfectly working, is now creating an event with a message that says "No performance data from plugin".
My monitoring template is as follows:
./check_mysql_query -q "select abs(time_to_sec(timediff(now(),max(DateTime)))) from measurement where deviceId='${dev/id}' and measurementType = 'HeartBeat'" -d localDB -u root -c 0:400

I'm using the check_mysql_query plugin (That I had to manually import to Zenoss' home directory and put it under libexec).
I'm using Nagios as my parser, and "/Status/Ping" as my event class.

Can anyone tell me what am I missing?

Many thanks.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70469#70469]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
cgriebel
2012-12-12 15:59:14 UTC
Permalink
cgriebel [http://community.zenoss.org/people/cgriebel] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70447#70447

--------------------------------------------------------------
I noticed that one of my custom nagios style performance monitoring scripts stopped working in 4.2 and I was able to fix it by changing the output syntax from:

*mycounter=1*

to

*mycounter:1*

variable*=*value worked in 3.x but not in 4.2

Maybe you're experiencing something similar?

Chock
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70447#70447]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-12 16:45:37 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70476#70476

--------------------------------------------------------------
Well I noticed something which is that when I expand any of my events, the error_codes field says the following:
+"Code: 2 - Msg: Misuse of shell builtins"+

Googling the error code has led me to this discussion:
http://community.zenoss.org/message/42157#42157 http://community.zenoss.org/message/42157

But obviously, from the above command that I'm using, I'm not using any illegal arguments, and I'm using "Nagios" as the parser for my command's output.

Any other ideas?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70476#70476]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
cgriebel
2012-12-12 16:54:03 UTC
Permalink
cgriebel [http://community.zenoss.org/people/cgriebel] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70449#70449

--------------------------------------------------------------
*zencommand run -d <yourdevicename> -v10*

should attempt to collect the data with check_mysql (and all the other command collectors you have configured).  You could run that on a command line as user zenoss and see what the output looks like.  That's how I solved my issue.

Chock
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70449#70449]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Philip Warren
2012-12-12 19:46:05 UTC
Permalink
Philip Warren [http://community.zenoss.org/people/pwarren] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70487#70487

--------------------------------------------------------------
There is an existing JIRA issue (ZEN-4452) which fixes problems in the current Nagios parser. This fix will be provided in the next release.

If you want to test the fix now, I have created a patch available and attached it. Download the patch and save it to /home/zenoss. Then apply the patch as the 'zenoss' user with the command:

$ cd $ZENHOME
$ patch -p0 -u --dry-run < ~/ZEN-4452_4575.diff

If this command doesn't give any errors, repeat the patch command but remove the '--dry-run' option. After applying the patch restart zencommand and see if it is now working.

-- Philip
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70487#70487]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-13 09:51:41 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70528#70528

--------------------------------------------------------------
This has absolutely solved my "*No performance data from plugin*" problem, and I no longer have the event error "*Code: 2 - Msg: Misuse of shell builtins*". But there's still one problem, which is that the ZenCommand in my original post that I used to use, used to create events that are capable of showing that a certain device has a status of "Down" (With the red light ) based on the result of my query. What's happening right now is that the device status is always "UP" regardless of the result of the query (This was surely working back in version 3.1.0). The only thing that can show that a device is down right now is when ZenPing reports that  a device is  down (Something that I really don't need since all of my devices cannot be pinged from the machine where Zenoss is installed). So again, I need the ZenCommand above to be able to change the status of the device (Be it up or down) based on the the result of my query. Is this still possible?

Your help is much appreciated.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70528#70528]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-14 14:17:20 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70547#70547

--------------------------------------------------------------
Make sure to refer to this discussion for more information about my findings, concerning the status of a device:
http://community.zenoss.org/message/70543#70543#70543 http://community.zenoss.org/message/70543#70543
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70547#70547]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-12-17 21:16:40 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70593#70593

--------------------------------------------------------------
Mouhammed:

It's a bit of a rubegoldberg, but you could have your zencommand test create and event that triggers a trigger for a notification command that then triggers zensendevent to sent the /Status/Ping event. You're almost better with having  the zencommand datasource invoke zensendevent itself on failure.

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70593#70593]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-19 12:35:01 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70627#70627

--------------------------------------------------------------
Shane:

This was the workaround that I have thought about as well, but in the meantime it will require more testing from our team. So we decided to stick to my findings in my discussion, hoping that in the next release of Zenoss this will be addressed. If it's not fixed, then I think that we'll have to use "zensendevent" as you have suggested.

Thanks a ton for the help =)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70627#70627]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-12-20 00:20:39 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70665#70665

--------------------------------------------------------------
Mouhammed:

It's definitely a use case that needs to be added to the project. Did you submit a Jira enhancement? http://jira.zenoss.com http://jira.zenoss.com That way it'll be sure to et attention.

Have a good holiday!

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70665#70665]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-20 12:51:59 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70648#70648

--------------------------------------------------------------
Shane:
This is the enhancement bug I opened:
http://jira.zenoss.com/jira/browse/ZEN-4810 http://jira.zenoss.com/jira/browse/ZEN-4810
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70648#70648]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-12-24 15:49:50 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70688#70688

--------------------------------------------------------------
Mouhammed:

Nice. Have a great holiday!

--Shane Scott (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70688#70688]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Mouhammed Soueidane
2012-12-25 07:57:07 UTC
Permalink
Mouhammed Soueidane [http://community.zenoss.org/people/raziology] created the discussion

"Re: Zenoss 4.2.0 and The Nagios Parser"

To view the discussion, visit: http://community.zenoss.org/message/70697#70697

--------------------------------------------------------------
Same to you Shane, thanks =)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70697#70697]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...